/**  
 * @Title: BasePropertiesTest.java
 * @Package com.icss.trans.cfg
 * @Description: TODO(用一句话描述该文件做什么)
 * @author ICSS
 * @date 2015-3-25 下午3:29:58
 * @version V1.0  
 */ 
package com.icss.trans.cfg;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;


/**
 * @ClassName: BasePropertiesTest
 * @Description: 
 * @author ICSS
 * @date 2015-3-25 下午3:29:58
 *
 */
public class BasePropertiesTest {

    /**
     * @Description:
     * @throws java.lang.Exception
     */
    @Before
    public void setUp() throws Exception {
    }

    /**
     * @Description: 
     * @throws java.lang.Exception
     */
    @After
    public void tearDown() throws Exception {
    }

    /**
     * Test method for {@link com.icss.trans.cfg.BaseProperties#getProp(java.lang.String)}.
     */
    @Test
    public void testGetProp() {
        BaseProperties instance1 = BaseProperties.getInstance();
        String ip = instance1.getProp(PropParam.TRANS_IP);
        Assert.assertEquals("192.168.10.134", ip);
        BaseProperties instance2 = BaseProperties.getInstance();
        String port = instance2.getProp(PropParam.TRANS_PORT);
        Assert.assertEquals("8080", port);
        Assert.assertEquals(instance1, instance2);
    }

}
